package com.xm.po;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
/**
* @Description: 结算金额实体类
* @Author: Mr.Wang
* @Date: 2020/8/6
*/
public class OrderSettlements {
    //属性
    private Integer settlementId;
    //订单编号
    private Integer orderId;
    //结算编号
    private String settlementNo;
    //结算类型 0:手动 1:定时
    private Integer settlementType;
    //订单实际金额
    private Double orderMoney;
    //结算金额
    private Double settlementMoney;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    //是否完成结算 0未结算 1已结算
    private Integer isFinish;
    //结算时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date finishTime;
    //备注
    private String remarks;

    //构造器
    public OrderSettlements() {
    }
    public OrderSettlements(Integer orderId) {
        this.orderId = orderId;
    }

    public OrderSettlements(Integer settlementId, Integer orderId, String settlementNo, Integer settlementType,Double orderMoney, Double settlementMoney, Date createTime, Integer isFinish, Date finishTime, String remarks) {
        this.settlementId = settlementId;
        this.orderId = orderId;
        this.settlementNo = settlementNo;
        this.settlementType = settlementType;
        this.orderMoney = orderMoney;
        this.settlementMoney = settlementMoney;
        this.createTime = createTime;
        this.isFinish = isFinish;
        this.finishTime = finishTime;
        this.remarks = remarks;
    }

    //getter setter方法
    public void setSettlementId(Integer settlementId) {
        this.settlementId = settlementId;
    }

    public Integer getSettlementId() {
        return settlementId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setSettlementNo(String settlementNo) {
        this.settlementNo = settlementNo;
    }

    public String getSettlementNo() {
        return settlementNo;
    }

    public void setSettlementType(Integer settlementType) {
        this.settlementType = settlementType;
    }

    public Integer getSettlementType() {
        return settlementType;
    }

    public void setOrderMoney(Double orderMoney) {
        this.orderMoney = orderMoney;
    }

    public Double getOrderMoney() {
        return orderMoney;
    }

    public void setSettlementMoney(Double settlementMoney) {
        this.settlementMoney = settlementMoney;
    }

    public Double getSettlementMoney() {
        return settlementMoney;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setIsFinish(Integer isFinish) {
        this.isFinish = isFinish;
    }

    public Integer getIsFinish() {
        return isFinish;
    }

    public void setFinishTime(Date finishTime) {
        this.finishTime = finishTime;
    }

    public Date getFinishTime() {
        return finishTime;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getRemarks() {
        return remarks;
    }

    public String toString() {
        return "OrderSettlements [settlementId=" + settlementId + ", orderId=" + orderId + ", settlementNo=" + settlementNo + ", settlementType=" + settlementType + ", orderMoney=" + orderMoney + ", settlementMoney=" + settlementMoney + ", createTime=" + createTime + ", isFinish=" + isFinish + ", finishTime=" + finishTime + ", remarks=" + remarks + "]";
    }
}

